package com.peaksport.pkms.edge.filter;

import org.apache.servicecomb.common.rest.filter.HttpClientFilter;
import org.apache.servicecomb.core.Invocation;
import org.apache.servicecomb.foundation.vertx.http.HttpServletRequestEx;
import org.apache.servicecomb.foundation.vertx.http.HttpServletResponseEx;
import org.apache.servicecomb.swagger.invocation.Response;

public class PKEdgeHttpClientFilter implements HttpClientFilter {

	@Override
	public int getOrder() {
		return 0;
	}

	@Override
	public void beforeSendRequest(Invocation invocation, HttpServletRequestEx requestEx) {
		//System.out.println("PKEdgeHttpClientFilter.beforeSendRequest:" + PKPublicUtils.SDF_YYYYMMDD_HHMMSS.format(new Date()));
		System.out.println();
	}

	@Override
	public Response afterReceiveResponse(Invocation invocation, HttpServletResponseEx responseEx) {
	//	System.out.println("PKEdgeHttpClientFilter.afterReceiveResponse:" + PKPublicUtils.SDF_YYYYMMDD_HHMMSS.format(new Date()));
		return null;
	}
}
